package top.healthylife.gateway.platform.eye.dto.zhishichanquan.EyeReqTrademarkSearchDto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import javax.validation.constraints.NotNull;

/**
* @author: GenUtil
* @date: 2020-12-14 22:03:31
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("商标信息垂搜[1061]")
public class EyeReqTrademarkSearchDto extends ApiReqDto {

    @ApiField("查询类别(多个用英文逗号分隔) 1-商标名称 2-注册号 3-申请人 4-代理/办理机构")
    @JsonProperty("searchType")
    @ApiModelProperty(name = "查询类别(多个用英文逗号分隔) 1-商标名称 2-注册号 3-申请人 4-代理/办理机构", example = "1,2")
    private String searchType;

    @ApiField("申请开始日期")
    @JsonProperty("appDateBegin")
    @ApiModelProperty(name = "申请开始日期", example = "2010-01-01")
    private String appDateBegin;

    @ApiField("每页条数（默认20，最大20）")
    @JsonProperty("pageSize")
    @ApiModelProperty(name = "每页条数（默认20，最大20）", example = "20")
    private Integer pageSize = 20;

    @ApiField("国际分类(参考文档商标国际分类.pdf)")
    @JsonProperty("tmClass")
    @ApiModelProperty(name = "国际分类(参考文档商标国际分类.pdf)", example = "1")
    private Integer tmClass;

    @ApiField("申请结束日期")
    @JsonProperty("appDateEnd")
    @ApiModelProperty(name = "申请结束日期", example = "2020-01-01")
    private String appDateEnd;

    @ApiField(value = "关键词(商标名称,注册号,申请人,代理/办理机构)", necessity = true, group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "关键词(商标名称,注册号,申请人,代理/办理机构)")
    @JsonProperty("keyword")
    @ApiModelProperty(name = "关键词(商标名称,注册号,申请人,代理/办理机构)", example = "百度")
    private String keyword;

    @ApiField("当前页（默认1）")
    @JsonProperty("pageNum")
    @ApiModelProperty(name = "当前页（默认1）", example = "1")
    private Integer pageNum = 1;

    @ApiField("商标状态 1-商标已注册 2-商标无效 3-初审公告 4-等待实质审查 5-商标申请中 6-商标异议中 7-驳回复审中 8-商标其他情形 9-等待驳回复审 10-撤销/无效宣告申请审查中")
    @JsonProperty("status")
    @ApiModelProperty(name = "商标状态 1-商标已注册 2-商标无效 3-初审公告 4-等待实质审查 5-商标申请中 6-商标异议中 7-驳回复审中 8-商标其他情形 9-等待驳回复审 10-撤销/无效宣告申请审查中", example = "1")
    private String status;

}
